﻿using Beetle;
using Smark.Core;
using System;
using System.Security.Cryptography;

internal class Class_aa
{
    public bool _field_a;
    public string _field_b;
    public string _field_c;
    public int _field_d;
    public DateTime _field_e;
    private static Class_aa _field_f = null;
    private static object _field_g = null;
    internal static string _field_h = "V/r2I2CpRaI=";

    public static Class_aa f()
    {
        lock (typeof(Class_aa))
        {
            if (_field_f == null)
            {
                _field_f = Class_o.a();
            }
        }
        return _field_f;
    }

    public static byte[] f(byte[] A_0)
    {
        return ((RSACryptoServiceProvider) _field_g).Decrypt(A_0, false);
    }

    internal static string f(string A_0)
    {
        DESCrypto crypto = new DESCrypto();
        DESCrypto.DESInfo info = new DESCrypto.DESInfo {
            IV = Convert.FromBase64String(TcpServer._field_g),
            Key = Convert.FromBase64String(TcpChannel._field_k)
        };
        crypto.KeyInfo = info;
        return crypto.Decrypt(A_0);
    }

    public bool g()
    {
        return this._field_a;
    }
}

